Skip to content

Conversation

@oleonardolima
Copy link
Contributor

fixes #1689

Description

As mentioned in issue #1689 the debug_assert! is being used on other LocalChain methods, such as: from_changeset, and apply_changeset but it was missing on apply_update.

Notes to the reviewers

Changelog notice

  • Add usage of debug_assert!() to LocalChain::apply_update.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

As mentioned in issue bitcoindevkit#1689 the `debug_assert!` is being used on other
`LocalChain` methods, such as: `from_changeset`, and `apply_changeset`
but it was missing on `apply_update`.
Copy link
Collaborator

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2ec5aa4 Thank you @oleonardolima

@notmandatory notmandatory added module-blockchain audit Suggested as result of external code audit labels Nov 21, 2024
@notmandatory notmandatory added this to the 1.0.0-beta milestone Nov 21, 2024
Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2ec5aa4

@notmandatory
Copy link
Member

oops I closed the wrong PR.

@notmandatory notmandatory merged commit 03c7368 into bitcoindevkit:master Nov 22, 2024
20 checks passed
@oleonardolima oleonardolima deleted the chore/use-debug-assert-on-apply-update branch December 2, 2024 22:08
@notmandatory notmandatory mentioned this pull request Dec 12, 2024
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit Suggested as result of external code audit module-blockchain

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add debug_assert in LocalChain::apply_update

3 participants